public class Thoroughbred {  
    // 属性  
    private String mother;  
    private String father;  
    private String birthyear;  
  
    // 构造函数  
    public Thoroughbred(String mother, String father, String birthyear) {  
        this.mother = mother;  
        this.father = father;  
        this.birthyear = birthyear;  
    }  
  
    // Getter方法  
    public String getMother() {  
        return mother;  
    }  
  
    public String getFather() {  
        return father;  
    }  
  
  
    public static void main(String[] args) {  
        // 创建一个Thoroughbred对象  
        Thoroughbred horse = new Thoroughbred("Dam Name", "Sire Name", "2020");  
  
        // 输出属性值  
        System.out.println("Mother: " + horse.getMother());  
        System.out.println("Father: " + horse.getFather());  
        // System.out.println("Current Age: " + horse.getCurrentAge()); // 如果实现了该方法，可以取消注释  
    }  
}